<cfset defaultImg = "/common/images/captcha-default.jpg">
<cfset defaultText = "type this">

<cfset img = "/common/images/captcha/" & cgi.remote_addr & "-" & getTickCount() & ".jpg">

<cfx_captcha
	outputfile="#expandpath(img)#"
	gridspacing="4"
	fontcolor="000000"
	fontstyle="italic"
	fontface="Times New Roman"
	gridcolor="777777"
	alpha="90"
	<!--- blur="true" --->
	fontsize="24"
	GRADIENTBGCOLOR1="ff6666"
	GRADIENTBGCOLOR2="66ff66"
>
<cfif captchaMessage eq "OK">
	<cfset session.captchaText = lcase(captchaText)>
	<cfcontent type="image/jpeg" file="#expandPath(img)#" deletefile="Yes">
<cfelse>
	<cfset session.captchaText = lcase(defaultText)>
	<cfcontent type="image/jpeg" file="#expandPath(defaultImg)#" deletefile="No">
</cfif>
